﻿namespace Api.Shared.Utils.Yanji
{
    public class MyApiResponse<T>
        where T : class, new()
    {
        public MyApiResponse(string message, bool status = false)
        {
            this.Message = message;
            this.Status = status;
        }

        public MyApiResponse(bool status, T result)
        {
            this.Status = status;
            this.Result = result;
        }

        public string Message { get; set; }

        public bool Status { get; set; }

        public T Result { get; set; }

        public int Total { get; set; }

        public int Pagenum { get; set; }
    }
}
